package cn.iocoder.yudao.module.ao.controller.admin.academicyear.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDate;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

@Schema(description = "管理后台 - 学年及班级信息新增/修改 Request VO")
@Data
public class AcademicYearSaveReqVO {

    @Schema(description = "学年唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27171")
    private Long yearId;

    @Schema(description = "学校ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "学校ID不能为空")
    private Long schoolId;

    @Schema(description = "学年，如2024-2025", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "学年，如2024-2025不能为空")
    private String schoolYear;

    @Schema(description = "学期名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "学期名称不能为空")
    private String termName;

    @Schema(description = "学期代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "学期代码不能为空")
    private String termCode;

    @Schema(description = "开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "结束日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @Schema(description = "周数统计", example = "11")
    private Integer weeksCount;

    @Schema(description = "是否当前学期", example = "false")
    private Boolean isCurrent;

    @Schema(description = "状态（0=禁用 1=启用）", example = "1")
    private Integer status;

}